﻿@model ArticleWeb.Models.ArticleTag

@{
    ViewBag.Title = "编辑标签";
}

@using (Html.BeginForm("edit", "articletags", FormMethod.Post, htmlAttributes: new { lay_filter = "edit" }))
{
    @Html.AntiForgeryToken()

    <div class="layui-form">
        <h4>编辑分类</h4>
        <hr />
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <div class="form-group">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-inline">
                @Html.EditorFor(model => model.TagText, new { htmlAttributes = new { @class = "layui-input", lay_verify = "required" } })
                @Html.ValidationMessageFor(model => model.TagText, "", new { @class = "text-danger" })
            </div>
        </div>
        <br />
        <input type="submit" lay-submit lay-filter="edit" value="确定" class="layui-btn layui-btn-primary" />
        @Html.ActionLink("返回列表", "Index", null, new { @class = "layui-btn layui-btn-primary" })
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script>
        app.use('articletag/edit');
        app.model.id = '@Model.ID';
        app.model.getName = function () {
            return $('name')
        }
    </script>
}